#include <stdio.h>
#include <string.h>
void Reverse(char* str)
{
	char* left = str;
	char* right = str + strlen(str) - 1;
	while (left<right)
	{
		char i = *left;
		*left = *right;
		*right = i;
		left++;
		right--;
	}
}

int main()
{
	char arr[10] = "abcdfg";
	printf("%s\n", arr);
	Reverse(arr);
	printf("%s\n", arr);
	return 0;
}